<script>
  export let answer = 'ee';
  import { createEventDispatcher } from 'svelte';
  const dispatch = createEventDispatcher();

  function sendData() {
        const data = 'Hello from child component';
        dispatch('customEvent', data);
    }
</script>

<button on:click={sendData}>Send Data</button>

<p>The answer is {answer}</p>


<h1>
  {$$props.title}
  {$$props.version}
</h1>
